#!/bin/bash
cgcreate -g cpu:apache
cgclassify --sticky -g cpu:apache /$(pidof apache2)
echo $1 > /sys/fs/cgroup/cpu/apache/cpu.shares
